﻿using System.Collections.Generic;

namespace WebConversion.Common.WebCache
{
    public delegate object InitData();

    public interface ICacheManager
    {
        int Count { get; }
        List<string> AllKeys { get; }

        void Add(string key, object value);

        T Get<T>(string key);
        T Get<T>(string key, InitData initData);
        void Remove(string key);
        void Clear();
    }
}
